home *** CD-ROM | disk | FTP | other *** search
/ BlastDOS / pcANYWHERE 2.0.zip / Disk 1.IMA / NETUSER.IN$ / NETUSER.INF
INI File  |  1995-08-11  |  13KB  |  495 lines

  1. ; pcANYWHERE network user install script
  2.  
  3. [InstallVersion]
  4. 3.3
  5.  
  6. [WindowsVersion]
  7. 3.10
  8. "pcANYWHERE for Windows requires"
  9. "Windows version 3.1 or greater."
  10.  
  11. [process]
  12. switch91 = IsWinVerGTE(0320)                ;switch91=TRUE if Win 4.0
  13.  
  14. switch94=Exists(Files10)               ;switch94=TRUE if version 1.0 host files exist
  15. switch93=Exists(Files45)               ;switch93=TRUE if version 4.5 host files exist
  16. switch92=Exists(Files50)               ;switch92=TRUE if version 5.0 host files exist
  17. switch89=Exists(PcawIni)                 ;switch89=TRUE if pcaw.ini exists
  18.  
  19. switch88=FALSE                         ;switch88=TRUE if any pcAW VCD files exist
  20. switch88=VerifyIni(awvcd)
  21. #ifnot(switch88)
  22.     switch88=VerifyIni(aw_vcd)
  23. #endif
  24. #ifnot(switch88)
  25.     switch88=VerifyIni(aw5vcd)
  26. #endif
  27.  
  28. NetUserInstall
  29. #ifnot(switch91)                                ;!! chicago kludge - may solve lockup
  30.     Bitmaps(pix)                        ;display background bitmap
  31. #endif
  32. AllowIntlChars()                       ;allow international characters
  33. backup(pcawinst)                       ;copy install dll to Windows directory
  34.                                        ;setup the file information for copying
  35.  
  36. SetActiveCopy(PCAWorkstationCopy, netuser.inf)
  37.  
  38. Backup(SaveEmNet)
  39. messagebox(InformAboutBackupNet)
  40. ResetTarget(TargetSource)
  41.  
  42. DisableUtils()
  43. copy()                                 ;copy files
  44. groups()                               ;setup groups
  45. EnableUtils()
  46.  
  47. RemoveFromLoad(RemHost)                ;remove load=winhost from win.ini in case it is old
  48.  
  49. DelFromIni(OldVxDs)                    ;delete old pcAW VxD files in system.ini
  50. AddToIni(AWVXDS)                       ;add new VxDs to system.ini
  51.  
  52. DelFromIni(DelOldSymevent)
  53. AddToIni(SYMEVENT)                            ;add device=symevnt.386 to system.ini
  54.  
  55. switch01 = VerifyIni(CheckNetHeapSize) ;if no NetHeapSize, set it to 24
  56. #ifnot(switch01)
  57.     AddToIni(SetNetHeapSize)
  58. #endif
  59.  
  60. switch01 = VerifyIni(TimeCriticalPresent)  ;add TimerCriticalSection=500 if not set in system.ini
  61. #ifnot(switch01)
  62.      AddToIni(TimeCriticalSection)
  63. #endif
  64.  
  65. switch01 = VerifyIni(FindFontSection)  ;add font section to pcaw.ini if not already there
  66. #ifnot(switch01)
  67.      AddToIni(AddFontSection)
  68. #endif
  69.  
  70. switch01 = VerifyIni(FindFontSection)    ;add font section to pcaw.ini if not already there
  71. #ifnot(switch01)
  72.     AddToIni(AddFontSection)
  73. #endif
  74. #if(switch88)                                        ;if we removed an old pcAW VCD
  75.     switch01 = VerifyIni(VCDExists)            ;restore original one if no other exists
  76.     #ifnot(switch01)                                ;if not,
  77.         switch02 = Exists(VCD386Exists)        ;check if vcd.386 exists
  78.         #if(switch02)
  79.             AddToIni(AddVCD386)              ;yes - use it
  80.         #else
  81.             AddToIni(AddVCD)                        ;no - use *vcd
  82.         #endif
  83.     #endif
  84. #endif
  85. ;------------------------------------------------------------------------------------
  86. ;Restore the original video, keyboard, mouse, and sound drivers if upgrading
  87. ;from a previous version of pcAW
  88. ;------------------------------------------------------------------------------------
  89. switch01 = Exists(PcawIni)             ;check if pcaw.ini exists (it should - we created one)
  90. #if(switch01)
  91.     switch02 = VerifyIni(MouseDriverSaved)  ;check if a mouse driver was saved in pcaw.ini
  92.    #if(switch02)
  93.       switch03 = VerifyIni(MouseCheckOld)   ;check if a pcAW mouse driver is in system.ini
  94.       #if(switch03)
  95.          CopyIni(MouseRestore)              ;restore original mouse driver
  96.       #endif
  97.    #else                                               ;no driver saved but may be a 4.5 install
  98.       switch03 = VerifyIni(MouseCheckOld) ;check if a pcAW mouse driver is in system.ini
  99.       #if(switch03)
  100.          UpdateIni(MouseRestore1)            ;restore to mouse.drv and hope it's correct
  101.       #endif
  102.    #endif
  103.    switch02 = VerifyIni(KbdDriverSaved)     ;check if a kbd driver was saved in pcaw.ini
  104.    #if(switch02)
  105.       switch03 = VerifyIni(KbdCheckOld)     ;check if a pcAW kbd driver is in system.ini
  106.       #if(switch03)
  107.          CopyIni(KbdRestore)                ;restore original keyboard driver
  108.       #endif
  109.    #endif
  110.    switch02 = VerifyIni(DisplayDriverSaved) ;check if a display driver was saved in pcaw.ini
  111.    #if(switch02)
  112.       switch03 = VerifyIni(DisplayCheckOld) ;check if a pcAW display driver is in system.ini
  113.       #if(switch03)
  114.          CopyIni(DisplayRestore)            ;restore original display driver
  115.       #endif
  116.    #endif
  117.    switch02 = VerifyIni(SoundDriverSaved)   ;check if a sound driver was saved in pcaw.ini
  118.    #if(switch02)
  119.       switch03 = VerifyIni(SoundCheckOld)   ;check if a pcAW sound driver is in system.ini
  120.       #if(switch03)
  121.          CopyIni(SoundRestore)              ;restore original sound driver
  122.       #endif
  123.    #endif
  124. #endif
  125.  
  126. ;Create [oldfiles] section in pcaw.ini and list files that the main program should
  127. ;delete the first time it is run.
  128. AddToIni(Oldfiles)
  129. #if(switch94)
  130.     AddToIni(DelOld10)
  131. #endif
  132. #if(switch93)
  133.     AddToIni(DelOld45)
  134. #endif
  135. #if(switch92)
  136.     AddToIni(DelOld50)
  137. #endif
  138. DelFromIni(Oldfiles)
  139. switch85=Exists(CheckAuto)              ;check if autoexec.bat exists
  140. #if(switch85)                                ;if so,
  141.     ModifyTextFile(autoexec)        ;remove old DOS TSR it.
  142. #endif
  143.  
  144. Delete(InstallDLLs)                    ;remove install files
  145. MergeRegFile(Reg)                                 ;merge reg file
  146. #if(switch91)
  147.     EndRebootOnly(ByeRestart)
  148. #else
  149.     End(ByeNoReboot)
  150. #endif
  151.  
  152. End()
  153.  
  154.  
  155. ;-----------------------------------------------------------------------
  156. ; Copy.
  157. ;-----------------------------------------------------------------------
  158.  
  159. [PCAWorkstationCopy]
  160. CopyMain.BaseFiles, "pcANYWHERE - %ldK ",    100, Y, N, Y
  161.  
  162. [PCAWorkstationCopy:CopyDialog]
  163. caption = "Copying pcANYWHERE Files..."
  164. posx = -50
  165. posy = -50
  166.  
  167.  
  168. ;----------------------------------------------------------------------------------
  169.  
  170. ;-----------------------------------------------------------------------
  171. ; Groups.
  172. ;-----------------------------------------------------------------------
  173. [groups]
  174. "pcAnywhere",       winaw.grp, DELETE
  175.  
  176. [pcAnywhere]
  177. "pcAnywhere for Windows",  winaw.exe,        BaseFiles
  178. "Remove pcAnywhere",       "install.exe /u", BaseFiles
  179. "Release Notes",        readme.txt, BaseFiles
  180.  
  181. [ByeNoReboot]
  182. caption = "pcANYWHERE -- Install Complete"
  183. "This concludes the network workstation installation of pcANYWHERE for Windows."
  184. " "
  185. "Please review the README.TXT file for last minute changes and corrections to the documentation."
  186. " "
  187. "Select one of the exit options."
  188.  
  189. [ByeRestart]
  190. caption = "pcANYWHERE -- Install Complete"
  191. "This concludes the installation of pcANYWHERE for Windows."
  192. " "
  193. "Please review the README.TXT file for last minute changes and corrections to the documentation."
  194. " "
  195.  
  196. [InformAboutBackupNet]
  197. caption = "Startup Files"
  198. "The following startup files (if they exist) have been backed up to files with the extension .PCA:"
  199. " "
  200. "AUTOEXEC.BAT, WIN.INI, SYSTEM.INI"
  201.  
  202. [errors]
  203. noprev  =  "Symantec Install for Windows is already running!"
  204.  
  205. [FileCopy]
  206. errorcaption  =  "Error Copying Files"
  207. insertcaption =  "Insert Diskette"
  208.  
  209. [cancel]
  210. caption = "pcANYWHERE"
  211. text     = "Are you sure you want to exit?"
  212.  
  213. [cancelshell]
  214. caption = "pcANYWHERE"
  215. text     = "Are you sure you want to exit?"
  216.  
  217. ;-----------------------------------------------------------------------
  218.  
  219. [SaveEmNet]
  220. system.ini, system.pca, WINDOWS, WINDOWS
  221. win.ini, win.pca, WINDOWS, WINDOWS
  222. c:\autoexec.bat, c:\autoexec.pca, dummy, dummy
  223.  
  224. [pcawinst]
  225. awinst.dll, awinst.dll, SOURCE, WINDOWS
  226. symkrnl5.dll, symkrnl5.dll, SOURCE, WINDOWS
  227.  
  228. [InstallDLLs]
  229. AWINST.DLL, WINDOWS
  230. WIN.$AW, WINDOWS
  231. SYSTEM.$AW, WINDOWS
  232. SIWDLL.DLL, WINDOWS
  233. SIWZIP.DLL, WINDOWS
  234. SIW3ZIP.DLL, WINDOWS
  235. AWLPFUNC.DLL, WINDOWS
  236.  
  237. [RemHost]
  238. winhost.exe
  239.  
  240. [OldVxDs]
  241. IniName = system.ini
  242. SectionName = 386Enh
  243. device=*vpcaw.386*
  244. device=*vpcaw5.386*
  245. device=*awvcd.386*
  246. device=*aw_vcd.386*
  247. device=*aw5vcd.386*
  248. device=*awdos.386*
  249.  
  250. [AWVXDS]
  251. IniName = system.ini
  252. SectionName = 386Enh
  253. device = "awdos.386              ; Added by pcANYWHERE"
  254. device = "vpcaw.386              ; Added by pcANYWHERE"
  255.  
  256. [DelOldSymevent]
  257. IniName = system.ini
  258. SectionName = 386Enh
  259. devic